package com.ipacs.abs4j.testcode.absSchema;

import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;

public abstract class AbstractAbsBeanDefinitionParser extends AbstractSingleBeanDefinitionParser  {
 
    protected void commonParse(Element element, BeanDefinitionBuilder builder) { 
    	
    	String errEnd = element.getAttribute("errEnd") ;
    	if(StringUtils.hasText(errEnd)) {    		
    		builder.addPropertyValue("errEnd", Boolean.valueOf(Boolean.parseBoolean(element.getAttribute("errEnd") ))) ;
    	}
        
    	String name = element.getAttribute("name") ;
    	if(StringUtils.hasText(name)) {  		
    		builder.addPropertyValue("name", element.getAttribute("name")) ;
    	} 
    }  


}
